package com.example.leonard.core.thread;

import com.example.leonard.core.domain.Employee;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.util.concurrent.Callable;

@NoArgsConstructor
@AllArgsConstructor
public class MyCallableThread implements Callable {
    private Employee employee;

    @Override
    public Boolean call() throws Exception {
        if (employee.getAge() == 13) {
            return false;
        }
        return true;
    }

}
